#include "RsGisLibCMDClassification.h"

RsGisLibCMDClassification::RsGisLibCMDClassification(RsgisPortal* Port)
{
	ClientPort = Port;

	rsgisClassCollaRATtoClass = NULL;
	rsgisClassGenRgbImgfromClrTbl = NULL;
	rsgisClassGenRandAccPts = NULL;
	rsgisClassGenStrRandAccPts = NULL;
	rsgisClassPopClassInfoAccPts = NULL;
}

RsGisLibCMDClassification::~RsGisLibCMDClassification()
{
	if (rsgisClassCollaRATtoClass)
		delete(rsgisClassCollaRATtoClass);
	if (rsgisClassGenRgbImgfromClrTbl)
		delete(rsgisClassGenRgbImgfromClrTbl);
	if (rsgisClassGenRandAccPts)
		delete(rsgisClassGenRandAccPts);
	if (rsgisClassGenStrRandAccPts)
		delete(rsgisClassGenStrRandAccPts);
	if (rsgisClassPopClassInfoAccPts)
		delete(rsgisClassPopClassInfoAccPts);

	rsgisClassCollaRATtoClass = NULL;
	rsgisClassGenRgbImgfromClrTbl = NULL;
	rsgisClassGenRandAccPts = NULL;
	rsgisClassGenStrRandAccPts = NULL;
	rsgisClassPopClassInfoAccPts = NULL;
}

void RsGisLibCMDClassification::ClassCollaRATtoClass()
{
	rsgisClassCollaRATtoClass = new RsGisLibClassCollaRATtoClass(ClientPort, NULL);
	rsgisClassCollaRATtoClass->show();
}

void RsGisLibCMDClassification::ClassGenRgbImgfromClrTbl()
{
	rsgisClassGenRgbImgfromClrTbl = new RsGisLibClassGenRgbImgfromClrTbl(ClientPort, NULL);
	rsgisClassGenRgbImgfromClrTbl->show();
}

void RsGisLibCMDClassification::ClassGenRandAccPts()
{
	rsgisClassGenRandAccPts = new RsGisLibClassGenRandAccPts(ClientPort, NULL);
	rsgisClassGenRandAccPts->show();
}

void RsGisLibCMDClassification::ClassGenStrRandAccPts()
{
	rsgisClassGenStrRandAccPts = new RsGisLibClassGenStrRandAccPts(ClientPort, NULL);
	rsgisClassGenStrRandAccPts->show();
}

void RsGisLibCMDClassification::ClassPopClassInfoAccPts()
{
	rsgisClassPopClassInfoAccPts = new RsGisLibClassPopClassInfoAccPts(ClientPort, NULL);
	rsgisClassPopClassInfoAccPts->show();
}